<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>你好！欢迎访问</title>
    <script src="./Resources/js/main.js"></script>
    <link rel="stylesheet" href="./Resources/css/main.min.css">
    <link rel="stylesheet" href="./Resources/css/index.min.css">
</head>
<body>
    <div class="app columnStartStart">
        <main class="main">
            <div class="banner columnCenterCenter">
                <div class="font-42">新时代<span>·</span>新事物<span>·</span>新发展</div>
                <div class="font-30">将抽象需求转化为具体代码的逻辑建筑师</div>
                <div class="rowStartCenter m-t-77">
                    <button onclick="login()">登录</button>
                    <button onclick="register()">注册</button>
                </div>
            </div>
        </main>
    </div>
    <script>
        window.addEventListener("DOMContentLoaded", () => {
            initialize(".app").then(() => {
                load();
            }).catch(error => {
                alert(error, null, "error");
            })
        });

        function load(){
            if(getSearchString("sso_token")) {
                $.storage.set("sso_token", getSearchString("sso_token"))
            };
            create(".app", 0, (keyword) => {
                console.log(keyword);
            });
        };

        function login(){
            window.location.href = `${$.baseUrl}/pages/auth/login.html`;
        };

        function register(){
            window.location.href = `${$.baseUrl}/pages/auth/register.html`;
        }
    </script>
</body>
</html>